package com.sdp.irrigation.controller;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.sdp.core.bizc.db.Query;
import com.sdp.core.bizc.vo.DataCenter;
import com.sdp.core.bizc.vo.Result;
import com.sdp.irrigation.db.irrigation_eq_order.service.IIrrigationEqOrderService;
import com.sdp.irrigation.entity.IrrigationEqOrder;

/**
 * <p>
 * 设备订单表 前端控制器
 * </p>
 *
 * @author zsp
 * @since 2025-02-05
 */
@RestController
@RequestMapping("/IrrigationEqOrderController")
public class IrrigationEqOrderController {
	
	@Autowired
	private IIrrigationEqOrderService iIrrigationEqOrderService;
	
	@Autowired
	private Query query;
	
	@PostMapping(value = "/page")
	public Result<?> page(@RequestBody DataCenter dataCenter) {
		return Result.ok(query.page(iIrrigationEqOrderService, IrrigationEqOrder.class, dataCenter));
	}
}

